<template>
  <FormItem label="图谱图标" prop="icon" class="from-item-icon">
    <div class="modal-icons">
      <img
        alt="图标"
        v-if="selectIconSrc || editFlag"
        :src="selectIconSrc || editInfo.icon"
        @click="getIconsData(selectIconSrc ? selectIconSrc : editInfo.icon)"
      >
      <Icon v-else type="ios-add" class="icon-add" @click="getIconsData"/>
    </div>
    <Input v-model="modelAdd.icon" v-show="false"/>
  </FormItem>
</template>

<script>
export default {
  data () {
    return {};
  },
  methods: {}
};
</script>

<style lang="less">
.from-item-icon {
  .ivu-form-item-error-tip {
    margin-top: 66px;
  }
}
</style>
